﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;

namespace DACK_MHTTUD_0912008_0912493
{
    public class DES_Padding
    {
        enum Enum_Padding { ANSIX923, PKCS7, ISO10126 };
        public static PaddingMode Get_Padding_Mode_From_String(string str_padding)
        {
            if (str_padding.Equals(Enum_Padding.ANSIX923.ToString()))
                return PaddingMode.ANSIX923;
            else if (str_padding.Equals(Enum_Padding.PKCS7.ToString()))
                return PaddingMode.PKCS7;
            return PaddingMode.ISO10126;
        }
    }
}
